/**
 * Copyright (C) 2018-2019
 * All rights reserved, Designed By www.joolun.com
 */
package com.joolun.mall.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.time.LocalDateTime;

/**
 * 志愿活动
 */
@Data
@TableName("tb_video")
@EqualsAndHashCode(callSuper = true)
@ApiModel(description = "视频回放")
public class Video extends Model<Video> {
private static final long serialVersionUID = 1L;

    /**
   * PK
   */
	@ApiModelProperty(value = "id")
    @TableId(type = IdType.AUTO)
    private String id;

    @ApiModelProperty(value = "志愿")
    @TableField("cate_id")
    private String  cateId;

	@ApiModelProperty(value = "志愿")
    private String title;

    @ApiModelProperty(value = "志愿详情")
    private String content;

    @ApiModelProperty(value = "志愿图片")
    private String pic;

    @ApiModelProperty(value = "视频地址")
    private String video;
    @ApiModelProperty(value = "置顶")
    private Integer orderNum;
    /**
   * 创建时间
   */
	@ApiModelProperty(value = "创建时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime createTime;

    @TableField(exist = false)
    private String cateName;

}
